import VueRouter from 'vue-router'
import Vue from 'vue';

Vue.use(VueRouter);

import HomeView from '@/homeView/index.vue'
import loginView from "@/loginView";
const routes = [
    {
        path: '/',
        component: loginView,
        name: 'login'
    },
    {
        path: '/home',
        component: HomeView,
        name: 'home'
    },
    {
        path: '/login',
        component: loginView,
        name: 'login'
    },
]

const router = new VueRouter(
    // history: createMemoryHistory(),
    {routes}
)

export default router
